<ul class="user-list" >
<?
if(is_array($records )){
foreach ($records as $r ){ ?>
  <li>
    <div>姓名 <?=$r['name']?></div>
    <div>密码 <?=$r['pwd']?></div>
    <div>邮件 <?=$r['email']?></div>
    <div>手机 <?=$r['mobile']?></div>
    <div>办公电话 <?=$r['officetel']?></div>
    <div>家庭电话 <?=$r['hometel']?></div>
    <div>部门 <?=$r['depart']?></div>
    <div>领导 <?=$r['leader']?></div>
    <div>管理员 <?=$r['admin']?></div>
    <div>
      <a href="/user/view/<?=$r['id']?>" >查看</a>
      <a href="/user/edit/<?=$r['id']?>" >编辑</a> 
    </div>
  </li>
<?  }
}?>
</ul>
<?=$pagination?>